import request from '@/utils/request'

// 查询聊天详情列表
export function listNegotiation(query) {
  return request({
    url: '/system/negotiation/list',
    method: 'get',
    params: query
  })
}

// 查询聊天详情详细
export function getNegotiation(id) {
  return request({
    url: '/system/negotiation/' + id,
    method: 'get'
  })
}

// 新增聊天详情
export function addNegotiation(data) {
  return request({
    url: '/system/negotiation',
    method: 'post',
    data: data
  })
}

// 修改聊天详情
export function updateNegotiation(data) {
  return request({
    url: '/system/negotiation',
    method: 'put',
    data: data
  })
}

// 删除聊天详情
export function delNegotiation(id) {
  return request({
    url: '/system/negotiation/' + id,
    method: 'delete'
  })
}
